package com.idealighter.game.roomcard.message;

import com.baidu.bjf.remoting.protobuf.FieldType;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import com.idealighter.game.core.annotation.ResMsg;
import com.idealighter.game.message.ModuleMsgIdConstant;
import com.idealighter.game.message.core.ResMessage;
import java.util.List;
import lombok.Data;

@ResMsg(ModuleMsgIdConstant.RoomCard.ROOM_CARD_LIST)
@Data
public class ResRoomCardListMsg implements ResMessage {
  @Protobuf(fieldType = FieldType.INT32, order = 1, required = true)
  private int id = ModuleMsgIdConstant.RoomCard.ROOM_CARD_LIST;
  @Protobuf(order = 2)
  private List<RoomInfo> roomList;

  @Data
  public static class RoomInfo {
    // 房间id
    @Protobuf(order = 1)
    private long roomId;
    @Protobuf(order = 2)
    private long ownerId;
    @Protobuf(order = 3)
    private String ownerName;
    @Protobuf(order = 4)
    private String ownerAvatar;
    @Protobuf(order = 5)
    private long superId;
    @Protobuf(order = 6)
    private int groupId;
    @Protobuf(order = 7)
    private int gameId;
    @Protobuf(order = 8)
    private String gameName;
    @Protobuf(order = 9)
    private int payBy;
    @Protobuf(order = 10)
    private long price;
    @Protobuf(order = 11)
    private String gameCfg;
    @Protobuf(order = 12)
    private int rounds; // 总局数
    @Protobuf(order = 13)
    private long createTime;
    @Protobuf(order = 14)
    private int playerNum; // 当前房间人数
  }
}
